package com.csun.action;

import org.springframework.stereotype.Controller;

import com.csun.base.BaseAction;

/**
 * @ClassName: RoteAction.java
 * @Description:核心路由控制Action
 * @author danjinsong danjingsong@dragonwake.cn
 * @date 2017年2月17日上午11:29:11
 * 
 */
@Controller
@SuppressWarnings("serial")
public class RoteAction extends BaseAction{
	
	private String mainPage;            					 //页面主路由
	
	//=================核心业务逻辑方法===========================//
	/**
	 * 主页路由
	 * @return
	 */
	public String index(){
		mainPage = "/component/index_table.jsp";
		return "success";
	}
	/**
	 * 对象建立服务表格
	 * @return
	 */
	public String serverBuilderTable(){
		mainPage = "/admin/mune/server_builder_table.jsp";
		return "success";
	}
	/**
	 * 服务流程设计表格
	 * @return
	 */
	public String serverMakeTable(){
		mainPage = "/admin/mune/server_make_table.jsp";
		return "success";
	}
	/**
	 * 当前待办流程表格
	 * @return
	 */
	public String serverNowTable(){
		mainPage = "/admin/mune/server_now_table.jsp";
		return "success";
	}
	/**
	 * 服务对象表格
	 * @return
	 */
	public String serverObjectTable(){
		mainPage = "/admin/mune/server_object_table.jsp";
		return "success";
	}
	/**
	 * 角色权限表格
	 * @return
	 */
	public String userRoleTable(){
		mainPage = "/admin/mune/user_role_table.jsp";
		return "success";
	}
	/**
	 * 登出系统
	 * @return
	 */
	public String logout(){
		getSession().invalidate();	//清除session
//		getRequset().getCookies()	//清除指定cookie
		return "logout";
	}
	//=================中间业务逻辑方法===========================//
	
	
	//=================get set 方法===========================//
	public String getMainPage() {
		return mainPage;
	}

	public void setMainPage(String mainPage) {
		this.mainPage = mainPage;
	}
}
